package com.neotech.neo4j.resources;

import java.util.ArrayList;

public class Node extends Item{

	private ArrayList<Long> incomingNodes;
	private ArrayList<Long> outgoingNodes;
	
	public Node(long id) {
		super(id);
		incomingNodes = new ArrayList<Long>();
		outgoingNodes = new ArrayList<Long>();
	}
	
	public ArrayList<Long> getIncomingNodes(){
		return incomingNodes;
	}

	public boolean hasIncomingNodes(){
		return (incomingNodes.size() > 0) ? true : false;
	}
	
	public ArrayList<Long> getOutgoingNodes(){
		return outgoingNodes;
	}

	public boolean hasOutgoingNodes(){
		return (outgoingNodes.size() > 0) ? true : false;
	}

	
}
